package com.touch.app.common.domain;

import lombok.Data;

import java.util.List;

@Data
public class ChatGPTRequest {
    private static final String DEFAULT_MODEL = "gpt-3.5-turbo";
    private String model;
    private List<ChatGPTMessage> messages;

    public ChatGPTRequest(){}

    public ChatGPTRequest(List<ChatGPTMessage> messages) {
        this.model = DEFAULT_MODEL;
        this.messages = messages;
    }

    public ChatGPTRequest(String model, List<ChatGPTMessage> messages) {
        this.model = model;
        this.messages = messages;
    }

    @Override
    public String toString() {
        return "{\"model\":" + model +
                "\"messages\":" + messages +
                "}";
    }
}
